package com.wss.day05;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/23
 */
public class WPSTest {
    public void choose(WPSType type){
        switch (type){
            case PPT:
                System.out.println("PPT开档");
                break;
            case WORD:
                System.out.println("WORD开档");
                break;
            case EXCEL:
                System.out.println("EXCEL开档");
                break;
            case XMIND:
                System.out.println("XMIND开档");
                break;
            default:
                System.out.println("有误");
        }
    }
    public static void main(String[] args) {
        WPSType wpsType1 = WPSType.PPT;
        WPSType wpsType2 = WPSType.WORD;
        WPSType wpsType3 = WPSType.EXCEL;
        WPSType wpsType4 = WPSType.XMIND;

        WPSTest test = new WPSTest();
        test.choose(wpsType1);
        test.choose(wpsType2);
        test.choose(wpsType3);
        test.choose(wpsType4);
    }
}

enum WPSType{
    WORD,PPT,EXCEL,XMIND
}
